package whu.edu.demo.Fuction;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import java.util.Random;

@Service
public class Fuction {

    private int count = 0;
    Random random = new Random();



    public void func(){
        int target = 3;
        int test = random.nextInt(10);
        if(test == target){
            throw new RuntimeException();
        }

    }


}